﻿@model DataModel.AttributeSet

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_SiteGoodLayout.cshtml"; 
}

<div style="width: 100%; float:left; position:relative; top: 60px; margin-left: 60px; margin-bottom: 60px;">   
    <h2 class="blue-font-title" style="margin-left: 0;">New Attribute - @ViewBag.GoodName</h2>

    @using (Html.BeginForm()) {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>New Attribute</legend>

            @Html.HiddenFor(model => model.GoodId)

            <div class="editor-label">
                @Html.LabelFor(model => model.SiteAttributeId, "Attribute")
            </div>
            <div class="editor-field">
                @Html.DropDownList("SiteAttributeId", String.Empty)
                @Html.ValidationMessageFor(model => model.SiteAttributeId)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Value)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Value)
                @Html.ValidationMessageFor(model => model.Value)
            </div>

            <p>
                <input class="btn btn-primary" type="submit" value="Create" />
            </p>
        </fieldset>
    }

    <div>
        <p class="blue-font not-transform-text">
            @Html.ActionLink((string)ViewBag.GoodName, "View", (string)ViewBag.Name, new { id = ViewBag.GoodId }, null) |
            @Html.ActionLink("My Stuff", "MyStuff", (string)ViewBag.Name)
        </p>
    </div>
</div>